import java.util.TreeMap;

public class ArchivSevenZIP implements ICompressor
{
    private String parameter = " a ";// keep (don't delete) input files
    private String extension = ".7z";
    private String name = "7z";
    private TreeMap levels_list = new TreeMap();
    public String getCommandCompression(String work_direktory, String file_name, String compression_level)
    {
        String command = name + parameter + compression_level
                         + work_direktory + file_name + extension + " "
                         + work_direktory + file_name;
        return command;
    }
    public TreeMap getCompressionLevelsList()
    {
        levels_list.put("max", " -mx9 ");
        levels_list.put("min", " -mx1 ");
        levels_list.put("medium", " -mx5 ");
        return levels_list;
    }
    public String getExtension()
    {
        return extension;
    }
    public String getName()
    {
        return name;
    }
}